import type { Color, GradualColorRampItem } from '#/utils';

interface uniqueValueColorRampListItem {
  name: string;
  type: string;
  colors: Color[];
}
interface GradualColorRampListItem {
  name: string;
  ramp: GradualColorRampItem;
}

const uniqueValueColorRampList: uniqueValueColorRampListItem[] = [
  {
    name: 'random',
    type: 'random',
    colors: [],
  },
  {
    name: 'ramp2',
    type: 'diy',
    colors: [
      {
        R: 221,
        G: 151,
        B: 51,
      },
      {
        R: 34,
        G: 191,
        B: 211,
      },
      {
        R: 69,
        G: 194,
        B: 97,
      },
      {
        R: 194,
        G: 53,
        B: 252,
      },
      {
        R: 233,
        G: 226,
        B: 45,
      },
    ],
  },
  {
    name: 'ramp3',
    type: 'diy',
    colors: [
      {
        R: 209,
        G: 67,
        B: 42,
      },
      {
        R: 227,
        G: 191,
        B: 58,
      },
      {
        R: 59,
        G: 140,
        B: 229,
      },
      {
        R: 227,
        G: 215,
        B: 248,
      },
      {
        R: 135,
        G: 231,
        B: 80,
      },
    ],
  },
  {
    name: 'ramp4',
    type: 'diy',
    colors: [
      {
        R: 173,
        G: 198,
        B: 60,
      },
      {
        R: 230,
        G: 175,
        B: 225,
      },
      {
        R: 83,
        G: 213,
        B: 90,
      },
      {
        R: 207,
        G: 110,
        B: 40,
      },
      {
        R: 59,
        G: 198,
        B: 203,
      },
    ],
  },
  {
    name: 'ramp5',
    type: 'diy',
    colors: [
      {
        R: 135,
        G: 183,
        B: 220,
      },
      {
        R: 45,
        G: 227,
        B: 65,
      },
      {
        R: 199,
        G: 173,
        B: 90,
      },
      {
        R: 228,
        G: 85,
        B: 161,
      },
      {
        R: 213,
        G: 220,
        B: 229,
      },
    ],
  },
  {
    name: 'ramp6',
    type: 'diy',
    colors: [
      {
        R: 225,
        G: 166,
        B: 228,
      },
      {
        R: 232,
        G: 232,
        B: 37,
      },
      {
        R: 118,
        G: 123,
        B: 157,
      },
      {
        R: 174,
        G: 217,
        B: 173,
      },
      {
        R: 117,
        G: 201,
        B: 209,
      },
    ],
  },
];
const gradualColorRampList: GradualColorRampListItem[] = [
  {
    name: 'gradual_ramp_red',
    ramp: {
      start: {
        R: 254,
        G: 240,
        B: 217,
      },
      end: {
        R: 179,
        G: 0,
        B: 0,
      },
    },
  },
  {
    name: 'gradual_ramp_green',
    ramp: {
      start: {
        R: 237,
        G: 248,
        B: 251,
      },
      end: {
        R: 0,
        G: 109,
        B: 44,
      },
    },
  },
  {
    name: 'gradual_ramp_purple',
    ramp: {
      start: {
        R: 237,
        G: 248,
        B: 251,
      },
      end: {
        R: 129,
        G: 15,
        B: 124,
      },
    },
  },
  {
    name: 'gradual_ramp_blue',
    ramp: {
      start: {
        R: 241,
        G: 238,
        B: 246,
      },
      end: {
        R: 4,
        G: 90,
        B: 141,
      },
    },
  },
  {
    name: 'gradual_ramp_orange',
    ramp: {
      start: {
        R: 254,
        G: 230,
        B: 206,
      },
      end: {
        R: 230,
        G: 85,
        B: 13,
      },
    },
  },
  {
    name: 'gradual_ramp_magenta',
    ramp: {
      start: {
        R: 241,
        G: 238,
        B: 246,
      },
      end: {
        R: 152,
        G: 0,
        B: 67,
      },
    },
  },
];

export { gradualColorRampList, uniqueValueColorRampList };
